﻿@using DevExpress.Web.Mvc.UI
@Html.DevExpress().ReportViewer(settings =>{
    // The following settings are necessary for a Report Viewer. 
    settings.Name = "reportViewer1";
    settings.Report = (HotelManageSystem.Reports.XtraReport1)ViewData["Report"];
    // Callback and export route values specify corresponding controllers and their actions. 
    // These settings are necessary as well. 
    settings.CallbackRouteValues = new { Controller="ProductReport", Action="ReportViewerPartial" };
    settings.ExportRouteValues = new { Controller = "ProductReport", Action = "ExportReportViewer" };
    }).GetHtml()